﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ershou.BLL;

public partial class Yhkonjian_spxx : System.Web.UI.UserControl
{
    sp sp1 = new sp();
    protected void Page_Load(object sender, EventArgs e)
    {
        Bind();
    }

    protected void Bind()
    {
        GridView1.DataSource = sp1.GetProductByProductIdOrCategoryId(" ");
        GridView1.DataBind();
    }

    protected void gvProduct_PageIndexChanging(Object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        Bind();
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Session["id"] = 1;
    }

    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }

    protected void GridView1_SelectedIndexChanged1(object sender, EventArgs e)
    {

    }
}